package vip.xiaonuo.miniapp.api.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@Accessors(chain = true)
public class VisitorApiResponseVO implements Serializable {
    private static final long serialVersionUID = 1L;
    private String name;        // 用户名
    private String sex;        // 性别
    private String tel;        // 手机号
    private String status;        // 审核状态  1:审核通过，2:审核拒绝 ，0：已过期
    private String email;        // 邮箱
    private String photo;        // 人脸比对照片
    private String idCard;        //身份证号
    private String properValue;    //人脸特征值
    private Long companyId;
    private String companyName;        //公司

    private String visitorAddress;// 到访地址

    private String inviter;     //邀请人
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Date visitDate;     //开始访问时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Date visitTime;    //结束访问时间
    private String temperature; //访客体温
    private String qrCode;      //二维码路径
    private String identityPhoto; //身份证照片
    private String detectionPhoto;//核酸检测报告照片
    private String homeAddress;  //家庭住址
    private String approvalRemake;  //审批备注
    private String inviterPhone;     //被访问电话
    private String inviterCompanyName; //被访人公司
    private String visitReason;// 到访事由
    private String visitRemake;  //到访备注
    private String id;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Date createDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Date createStartDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Date createEndDate;
    private List<Map<String, String>> devices; // 门禁

    private List<Map<String, String>> stairs;// 梯控

    // 用户或者组织审批
    private Integer isUserOrOrg;
}
